package top.tagao.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author fu-xiao-liu
 * @Date 2022/3/5 21:32
 */

@FeignClient(value = "service-cmn")
@Repository
public interface DictFeignClient {

    /**
     * @date 获取数据字典名称
     */
    @GetMapping("/admin/cmn/dict/getName/{dictCode}/{value}")
    public String getName(@PathVariable("dictCode") String dictCode, @PathVariable("value") String value);


    /**
     * @date 获取数据字典名称
     */
    @GetMapping("/admin/cmn/dict/getName/{value}")
    public String getName(@PathVariable("value") String value);


}
